/*
author:
start_date:
version:
*/

//website:

/*
thought:
*/


#include <iostream>
#include <cmath>

using namespace std;

int  main(void) {

  clock_t start_time=clock();

  long long n;
  int T,sqrtN,count;
  cin >> T;
  for (int i = 0; i < T; i++)
  {
      cin >> n;
      sqrtN = sqrt(n);
      count = 2;
      for (int j = 2; j < sqrtN; j++) {
          if(n%j == 0)
          {
            count += 2;
          }
      }
      if(sqrtN*sqrtN == n)
        count++;

      std::cout << count << endl;

  }



  clock_t end_time=clock();
  cout<< "Running time is: "<<static_cast<double>(end_time-start_time)/CLOCKS_PER_SEC*1000<<"ms"<<endl;//输出运行时间
  return 0;
}
